package basic.com.liz.learn.thread;

public abstract class AbsFactory implements Runnable
{
    protected Factory factroy;
    
    public AbsFactory(Factory factroy)
    {
        super();
        this.factroy = factroy;
    }
    
    abstract protected void execute();
    
    @Override
    public void run()
    {
        while (true)
        {
            execute();
            // try
        }
    }
    
}
